<{include file="admincp_xheader.htm"}>
<script language="javascript">
function resizebody() {
	bodywidth = pageWidth() - 115;
	$("#bodyiframe").attr("width", bodywidth + "px");
	bodyheight = pageHeight();
	$("#bodyiframe").attr("height", bodyheight + "px");
}

function pageWidth() {
	if($.browser.msie) {
		return document.compatMode == "CSS1Compat" ? document.documentElement.clientWidth : document.body.clientWidth;
	} else {
		return self.innerWidth;
	}
}

function pageHeight() {
	if($.browser.msie) {
		return document.compatMode == "CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight;
	} else {
		return self.innerHeight;
	}
}

$(document).ready(function(){
	resizebody();
	$(window).resize(function() {
		resizebody();
	});
	$("#nav li").click(function(){
		id = this.id;
		$("#nav li").each(function(){
			if(this.id == id) {
				this.className = "current";
			} else {
				this.className = "";
			}
		});
		$("#menu .menu_body").each(function(){
			if(this.id == "menu_" + id) {
				this.style.display = "block";
			} else {
				this.style.display = "none";
			}
		});
	});
	$("#menu a").click(function(){
		var li = $(this).parent();
		li.addClass("current");
		li.prevAll().removeClass('current');
		li.nextAll().removeClass('current');
	});
	$('#menu a').focus(function(){
                if(this.blur){
                        this.blur();
                };
        });
        $("#nav li:first").click();
});
</script>
<base target="mainFrame">
<body style="padding:0px;" scroll="no">
	<div id="header">
		<div id="logo"><img src="configs/images/logo.gif" /></div>
		<div id="nav">
			<{$nav}>
		</div>
	</div>
	<div id="menu">
		<{$menu}>
	</div>
	<div style="margin-left:84px;overflow:hidden;">
		<iframe name="mainFrame" id="bodyiframe" src="welcome.php" frameborder="0"></iframe>
		<div style="clear:both;"></div>
	</div>
</body>
</html>